package cn.wolfcode.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.PayVo;
import cn.wolfcode.domain.RefundVo;
import cn.wolfcode.feign.fallback.ProductFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: Ruomeng
 * @Date: 2025/2/11
 * @Description : shopseckill
 * @Version: 1.0
 */
@FeignClient(name = "pay-service")
public interface PaymentFeignApi {

    @PostMapping("/alipay/prePay")
    Result<String> prePay(@RequestBody PayVo payVo);

    @PostMapping("/alipay/refund")
    Result<Boolean> refund(@RequestBody RefundVo refundVo);
}
